import turtle
import random

# 画一个矩形
def drawRectangle(t, w, h):
    """
    绘制一个矩形
    :param t:
    :param w:
    :param h:
    :return:
    """
    for i in range(100):
        t.forward(random.randint(20, 90))
        t.left(random.randint(20, 90))
        t.forward(random.randint(20, 90))
        t.left(random.randint(20, 90))

drawRectangle(turtle.Turtle(), 20, 30)

input("输入任意字符开始绘制")
